﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ShortMessageShow.aspx.cs"
    EnableEventValidation="false" Inherits="User_ShortMessageShow" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>短消息查看</title>

    <link rel="Stylesheet" type="text/css" href="../../Styles/right_style.css" />
    <script type="text/javascript" src="../../js/MyOption.js"></script>
    

<style type="text/css">
<!--
html{ scrollbar-base-color: #dbecf8; scrollbar-arrow-color: #2a8ed1; scrollbar-track-color: #bdddf2; scrollbar-3dlight-color: #2886c5; scrollbar-darkshadow-color: #2886c5;
scrollbar-face-color: #dbecf8; scrollbar-shadow-color: #dbecf8;  }
-->
</style>

</head>
<body>
    <form id="form1" runat="server">
        <div class="sub_right_top">
        <div class="clear_bot"></div>
        <asp:Repeater ID="DataList1" runat="server" OnItemDataBound="DataList1_ItemDataBound">
                        <HeaderTemplate>
                            <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0" class="dataList">
                            <tr class="jsmail_bgcolor">   
                                <td style="width:15%;">
                                    选择
                                </td>
                                <td style="width:25%;">预览</td>
                                <td style="width:25%;">
                                    <asp:Label ID="lblSendOrInceptUser" runat="server">
                                        <%=Request.QueryString["type"].ToString().Equals("incept") ? "发送人" : "接收人"%>
                                    </asp:Label>
                                </td>
                                <td style="width:25%;">发送时间</td>
                            </tr> 
                        </HeaderTemplate>

                        <ItemTemplate>
                            <tr onmouseover="this.style.background='#deecf7'" onmouseout="this.style.background=''">
                                <td>
                                    <input id="chkCur" name="chkCur" type="checkbox" value='<%# Eval("MsgId") %>' />
                                    
                                </td>
                                <td>
                                    <input id="informLevel" runat="server" style="width: 9px" type="hidden" />
                                     <input id="MsgId" runat="server" type="hidden" value='<%# Eval("MsgId") %>' style="width: 23px" />
                                     <asp:HyperLink ID="hplMsg" runat="server" Font-Size="Small" Text=""><img src="../../images/preview.gif" alt="" /></asp:HyperLink>
                                     <asp:Label ID="lblMessageState" runat="server" Text='<%# Eval("isNew") %>' Font-Size="Smaller" ForeColor="#C00000" Width="30px"></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="lblSendUserName" runat="server" Text='<%# Eval("SendUserName").ToString().Replace("-","").Trim() %>'></asp:Label>
                                    <asp:Label ID="lblInceptUserName" runat="server" Text='<%# Eval("InceptUserName").ToString().Replace("-","").Trim() %>'></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="lblSendDateTime" runat="server" Text='<%# Eval("SendDateTime") %>'></asp:Label>
                                </td>
                            </tr>
                        </ItemTemplate>
                        <FooterTemplate>
                             <tr class="jsmail_bgcolor">
                                <td>
                                    <input id="chkAll" onclick="allMsgCheck('chkCur')" type="checkbox" title="全选"/>全选
                                </td>
                                <td style="border-left-width:0;">
                                    <asp:Button ID="btnDelMsg" runat="server" BorderStyle="Groove" OnClick="btnDelMsg_Click"
                                        OnClientClick="return checkDelMsg('chkCur')" Text="删除" Width="58px" />
                                </td>
                                <td colspan="3" align="right" style="border-left-width:0;">
                                    <asp:Button ID="btnGoTop" runat="server" BorderStyle="Groove"
                                        Height="24px" OnClick="btnGoTop_Click" Text="首页" Width="58px" />
                                    &nbsp;<asp:Button ID="btnRetu" runat="server" Text="上一页" BorderStyle="Groove" OnClick="btnRetu_Click" />&nbsp;
                                    <asp:Button ID="btnNext" runat="server" BorderStyle="Groove" OnClick="btnNext_Click"
                                        Text="下一页" />
                                    <asp:Button ID="htnGoLast" runat="server" BorderStyle="Groove" Height="24px" OnClick="htnGoLast_Click"
                                        Text="末页" Width="58px" />
                                    <asp:Label ID="lblPageState" runat="server" Font-Bold="True" Font-Size="Smaller"
                                        ForeColor="Navy" Width="126px"></asp:Label>
                                </td>
                            </tr> 
                            </table>
                        </FooterTemplate>
                    </asp:Repeater>
        </div>
    </form>
</body>
</html>
